/**
 * 定义污水厂实体
 */
(function(window, angular, undefined){
	var module = angular.module('water.entity.houralarmdata', ['waterCommon']);
	
	module.service('$houralarmdataService',function($waterDataCommon){
		/**
		 * 获取小时报警数据
		 * MN 数采仪编码
		 * start 时间
		 * OVER_FLAG 报警类型
		 */
		this.getList = function(data){
			var promise = $waterDataCommon.post("/HourAlarmData/getList",data);
			return promise;
		}
		/**
		 * 导出报表
		 */
		this.ExportExcel = function(queryObj,onSuccess){
			var queryString = $waterDataCommon.jsonTostring(queryObj);
			window.open(getBasePath()+"/HourAlarmData/ExportExcel.do?"+queryString);
		}
		
	});
}(window, angular));